﻿@page "/counter"
@using SqlSugar
@rendermode InteractiveServer
@inject SqlSugarScope _sqlSugarHelpr

<PageTitle>Counter</PageTitle>

<h1>Counter</h1>

<p role="status">Current count: @currentCount</p>

<button class="btn btn-primary" @onclick="IncrementCount">Click me</button>

@code {
    private int currentCount = 0;

    private void IncrementCount()
    {
        currentCount++;
        _sqlSugarHelpr.DbFirst.Where("BUS_合同执行情况").IsCreateAttribute().CreateClassFile(@"D:\项目\华瑞\代码\前端\BlazorApp派单\BlazorApp派单\dbmodel\", "BlazorApp派单.dbmodel");
    }
}
